<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;

class CommonController extends Controller
{
    //上传文件
    public function upload(Request $request){
        $file = $request->file("file")->store('public/files');
        return $this->httpSuccess(Storage::url($file));
    }
}
